<?php
namespace Common\Model;
use Common\Model\AiModel;
class PetClassModel extends AiModel {
    public function GetPetClass($num){
    	//获取猫咪信息
        $data['mao']=$this->where('pettype=0')->select();
        //获取狗狗信息
        $data['gou']=$this->where('pettype=1')->select();
        return $data;
    }

    //获取宠物种类的名字
    public function GetPetTypeName($type){
      $where['id']=$type;
      $info=$this->where($where)->find();
      return $info['name'];
    } 
}